﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="MaintainExhibitions.aspx.cs" Inherits="Admin_MaintainExhibitions" %>
 <%@ Register Assembly="jQueryDatePicker" Namespace="Westwind.Web.Controls" TagPrefix="ww" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <script type="text/javascript" language="javascript" src="../Scripts/gettime.js">
    </script>
         <div class="cleaner_with_height"></div>

    <asp:Panel ID="pn_Exhibition" runat="server">
    </asp:Panel>
    <div class="float_left">Exhibitions's List 
    <asp:Button ID="btn_Insert" runat="server" Text="Add new Exhibition" 
        onclick="btn_Insert_Click" />
    <asp:Button ID="btn_Delete" runat="server" Text="Delete" 
        onclick="btn_Delete_Click" />
        </div>

           <div class="search">   <span>Search <asp:TextBox ID="txtSearch" runat="server" Width="150px"></asp:TextBox>
                            <asp:LinkButton ID="btn_Search" runat="server" Text="Go" 
           onclick="btn_Search_Click"></asp:LinkButton></span>
    </div>
    <div class="cleaner"></div>
    
    <asp:GridView ID="grv_Exhibitions" runat="server" AllowPaging="true" 
        PageSize="4" AutoGenerateColumns="false" Width="640px" DataKeyNames="ExhibitionID" 
        onpageindexchanging="grv_Exhibitions_PageIndexChanging">
    <Columns>
        <asp:TemplateField ItemStyle-Width="10px">
            <HeaderTemplate> All <asp:CheckBox ID="chk_All" runat="server" AutoPostBack="true" OnCheckedChanged="onCheckedChange" /> </HeaderTemplate>
            <ItemTemplate><asp:CheckBox ID="chk_Item" runat="server" /></ItemTemplate>
        </asp:TemplateField>
        <asp:TemplateField>
            <HeaderTemplate> Exhibition Name </HeaderTemplate>
            <ItemTemplate><%#Eval("ExhibitionName") %></ItemTemplate>

        </asp:TemplateField>

        <asp:TemplateField>
            <HeaderTemplate> Topic/Detail </HeaderTemplate>
            <ItemTemplate><%#Eval("Topic") %></ItemTemplate>
        </asp:TemplateField>

        <asp:TemplateField>
            <HeaderTemplate> Start Date </HeaderTemplate>
            <ItemTemplate><%#Eval("DateStart", "{0:dd/MM/yyyy}")%></ItemTemplate>

        </asp:TemplateField>

        <asp:TemplateField>
            <HeaderTemplate> End Date </HeaderTemplate>
            <ItemTemplate><%#Eval("DateEnd", "{0:dd/MM/yyyy}")%></ItemTemplate>
        </asp:TemplateField>
        
        <asp:TemplateField>
            <HeaderTemplate> Place</HeaderTemplate>
            <ItemTemplate><%#Eval("Place") %></ItemTemplate>
        </asp:TemplateField>   
        
        <asp:TemplateField>
            <HeaderTemplate> Organizer </HeaderTemplate>
            <ItemTemplate><%#Eval("Organizer")%></ItemTemplate>
        </asp:TemplateField>

        <asp:TemplateField>
            <HeaderTemplate> Edit </HeaderTemplate>
            <ItemTemplate><a href='MaintainExhibitions.aspx?ExhibitionID=<%#Eval("ExhibitionID") %>'>Edit</a></ItemTemplate>
        </asp:TemplateField>
    </Columns>
</asp:GridView>
<asp:Label ID="lblResult" runat="server"></asp:Label>
 </asp:Content>

